import Vue from 'vue'
import VueI18n from 'vue-i18n'
// import DatePicker from 'element/lib/date-picker'
import elenUS from 'element-ui/lib/locale/lang/en'
import elzhCN from 'element-ui/lib/locale/lang/zh-CN'

import enLocale from './en';
import znLocale from './zh';
Vue.use(VueI18n)
// Vue.use(DatePicker)

const messages = {
  en: {
    message: "English",
    ...enLocale,
    ...elenUS
  },
  "zh-cn":{
    message:"中文简体",
    ...znLocale,
    ...elzhCN
  }
}
const i18n = new VueI18n({
  locale:sessionStorage.getItem("locale")||"zh-cn",
  messages,
})



export default i18n
